<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>

<head>
	<probiz:pageHeading pageHeadingKey="productReviewList.heading" />
</head>
<content tag="buttons">
	<probiz:iconBtn btnType="multiMarkShowFlip" onclick="multiToggleReviewShowStatus();" />
	<probiz:iconBtn btnType="multiMarkTopFlip"  onclick="multiToggleReviewTopStatus();" />
	<probiz:iconBtn btnType="multiMarkReadFlip" onclick="multiToggleReviewReadStatus();" />
	<probiz:iconBtn btnType="delete" id="multiDelete" onclick="multiDelete();" />
</content>

<div id="productReviewList">
	<%@include file="include/productReviewSearchCriteria.jspf"%>
	
	<div id="productReviewResults" name="productReviewResults">
		<%--ajaxLoad file="/customer/include/productReviewListBody.jspf" --%>
		<%@include file="include/productReviewSearchCriteriaStorage.jspf"%>
	</div>
</div>


<script type="text/javascript"	src="${ctxPath}/scripts/probiz/customer/productReviewList.js?rs=${appConfig.rs}"></script>
<div style="display:none;">
	<customer:productReviewReply selectorId="replyDialog" callbackFunc="refreshReplyCount"></customer:productReviewReply>
</div>	


<script type="text/javascript">
$j(document).ready(function () {
	__FMTExtend = {
		productReviewList_selectReview:"<fmt:message key="productReviewList.selectReview"/>",
	    productReview_isRead_read:"<fmt:message key="productReview.isRead.read"/>",
	    productReviewList_message_multiToggleReviewReadStatus_success:"<fmt:message key="productReviewList.message.multiToggleReviewReadStatus.success"/>",
	    productReviewList_message_multiToggleReviewShowStatus_success:"<fmt:message key="productReviewList.message.multiToggleReviewShowStatus.success"/>",
	    productReviewList_message_multiToggleReviewTopStatus_success:"<fmt:message key="productReviewList.message.multiToggleReviewTopStatus.success"/>",
	    productReviewList_message_multiDelete_success:"<fmt:message key="productReviewList.message.multiDelete.success"/>",
	    productReviewList_message_messageCannotBeEmpty:"<fmt:message key="productReviewList.message.messageCannotBeEmpty"/>",
	    productReviewList_message_replyReview_success:"<fmt:message key="productReviewList.message.replyReview.success"/>"
	};
	$j.extend(__FMT, __FMTExtend); 
});	
    
    
$j(document).ready(function () {
	
	if('${param.productCode}'!=''){
		searchProductReviews(true,{productCode:'${param.productCode}'});
	}else{
		searchProductReviews(true,'');
	}
});

</script>